package gptma.bo.model;

import java.io.Serializable;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;

@MappedSuperclass
@XmlType
@XmlAccessorType(XmlAccessType.FIELD)
public abstract class BaseEntity implements Serializable {

	private static final long serialVersionUID = -5275314798060101544L;

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	protected Long id;

	/**
	 * @return the id
	 */
	public Long getId() {
		return id;
	}
}
